import React from 'react'
import { ResultPage, Card } from 'antd-mobile'
import { useSelector } from 'react-redux'
import { useNavigate } from 'react-router-dom';
function index() {
    const city=useSelector(store=>store.city.city)
    console.log(city);
    const nav=useNavigate()
    const gocity=()=>{
        nav('/city')
    }
  return (
    <div>
          <ResultPage
      status='success'
      title='操作成功'
      description='内容详情可折行，建议不超过两行建议不超过两行建议不超过两行'
    >
      <ResultPage.Card style={{ height: 64, padding: 8 }}>
        <h3>当前城市 : <span onClick={()=>gocity()}>{city}</span></h3>
         
      </ResultPage.Card> 
    </ResultPage>
    </div>
  )
}

export default index